package com.chenye.consulFegin.service.hystric;

import com.chenye.consulFegin.service.SchedualServiceHi;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by chenye on 2018/3/17.
 */
@Component//需要交由spring管理
public class SchedualServiceHiHystric implements SchedualServiceHi {
    @Override
    public String sayHiFromClientOne(@RequestParam(value = "name") String name) {
        return "sorry,the service is down:"+name;
    }
}
